<div class="item">
  <h1>论文参会代表列表</h1>
  <table class="list">
    <tr>
      <th>ID</th>
      <th>作者姓名</th>
      <th>工作单位</th>
      <th>提交日期</th>
      <th>操作</th>
    </tr>
    <% if @documents.blank? %>
      <%= empty_record_tag %>
    <% else %>
      <% @documents.each_with_index do |document, index| %>
        <tr class="<%= odevity_tag index %>">
          <td><%= link_to document.id, document %></td>
          <td><%= document.name %></td>
          <td><%= document.organization %></td>
          <td><%= human_date_for document.created_at %></td>
          <td><%= crud_for_list_tag document, :discard_destroy => true %></td>
        </tr>
      <% end %>
    <% end %>
  </table>
  <%= will_paginate @documents %>
</div>